settings: Fix xsettings handling
authorMatthias Clasen <mclasen@redhat.com>
Wed, 4 May 2016 15:19:03 +0000 (11:19 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 4 May 2016 15:19:03 +0000 (11:19 -0400)
commit1da048d19ac8921a9da843fc4376f927e620b8fb
treee9d37f999508d989cea79bfe6f11e622b6bdc587
parent1d0ba98d5df703c0936f2334733f68143f0831f2
settings: Fix xsettings handling

I was somehow under the misconception that we'd get GdkEventSettings
events for all the xsettings at startup. That is not in general true,
so we need to make sure that we check for the xsettings value before
we use them, or derived fields. Update all the private getters to
do so; and fix settings_update_font_values() to cope with font
descriptions that might miss the family or size.
gtk/gtksettings.c